package Io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2023-04-05
 * Time: 16:24
 */
public class test3 {
    public static void main(String[] args) throws IOException {
        try(InputStream inputStream = new FileInputStream("hello.txt")){
            try(Scanner sc = new Scanner(inputStream,"UTF-8")){
                while (sc.hasNext()){
                    String a =sc.next();
                    System.out.println(a);
                }
            }
        }
    }
}
